package com.xt.service;

import com.xt.dto.User;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Administrator on 2017/7/10.
 */
@RequestMapping("refactor")
public interface HelloService {
    @RequestMapping(value = "/hello4",method = RequestMethod.GET, produces="application/json;charset=UTF-8")
    String hello(@RequestParam("name") String name);

    @RequestMapping(value = "/hello5",method = RequestMethod.GET, produces="application/json;charset=UTF-8")
    User hello(@RequestHeader("name") String name,@RequestHeader("age") Integer age);

    @RequestMapping(value = "/hello6",method = RequestMethod.POST, produces="application/json;charset=UTF-8")
    String hello(@RequestBody User user);
}
